<script setup lang="ts">
defineOptions({
  name: "ALL_FAB_MAINTENANCE_PMTASK"
});
import { ref, markRaw, provide } from "vue";
import switchTabs from "@/views/common/components/switchTabs/index.vue";
import current from "./components/current.vue";
import history from "./components/history.vue";
import { type OptionsType } from "@/components/ReSegmented";

const options: Array<OptionsType> = [
  {
    label: "当前",
    name: "current",
    com: markRaw(current)
  },
  {
    label: "历史",
    name: "history",
    com: markRaw(history)
  }
];

const activeTab = ref<string>("current");

provide("activeTab", activeTab);
</script>

<template>
  <switchTabs v-model="activeTab" :options="options" />
</template>
